<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/myjs.js" type="text/javascript"></script>
</head>
<body>
<button onclick="alert('哈哈哈')">按钮1</button>
<img src="img/猛男落泪.bmp" onclick="alert('点我干啥')"/>
<button onclick="testAlert()">按钮2</button>
<button onclick="dianji()">按钮3</button>
<script type="text/javascript">
    function dianji() {
        alert('laiba ')
    }
</script>
</body>
</html>